package entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * (Outorder)实体类
 *
 * @author makejava
 * @since 2022 -04-12 15:14:05
 */
public class Outorder extends Common implements Serializable {
    private static final long serialVersionUID = 196706658327027160L;
    @TableId(type = IdType.ID_WORKER_STR)
    private String id;
    /**
     * 门店id
     */
    private String sId;
    /**
     * 订单创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "createTime")
    private Date createTime;
    /**
     * 费用
     */
    private Double cost;
    /**
     * 司机Id
     */
    private String cId;
    /**
     * 0未签收，1已签收
     */
    private Integer status;
    /**
     * 订单编号
     */
    @TableField(value = "orderNum")
    private String orderNum;

    private List<Store> storeList;

    private String storehouseId;

    public String getStorehouseId() {
        return storehouseId;
    }

    public void setStorehouseId(String storehouseId) {
        this.storehouseId = storehouseId;
    }

    @Override
    public String toString() {
        return "Outorder{" +
                "id='" + id + '\'' +
                ", sId='" + sId + '\'' +
                ", createTime=" + createTime +
                ", cost=" + cost +
                ", cId='" + cId + '\'' +
                ", status=" + status +
                ", orderNum='" + orderNum + '\'' +
                ", storeList=" + storeList +
                ", storehouseId='" + storehouseId + '\'' +
                '}';
    }

    /**
     * Gets store list.
     *
     * @return the store list
     */
    public List<Store> getStoreList() {
        return storeList;
    }

    /**
     * Sets store list.
     *
     * @param storeList the store list
     */
    public void setStoreList(List<Store> storeList) {
        this.storeList = storeList;
    }

    /**
     * Gets id.
     *
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * Sets id.
     *
     * @param id the id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * Gets id.
     *
     * @return the id
     */
    public String getsId() {
        return sId;
    }

    /**
     * Sets id.
     *
     * @param sId the s id
     */
    public void setsId(String sId) {
        this.sId = sId;
    }

    /**
     * Gets create time.
     *
     * @return the create time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * Sets create time.
     *
     * @param createTime the create time
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * Gets cost.
     *
     * @return the cost
     */
    public Double getCost() {
        return cost;
    }

    /**
     * Sets cost.
     *
     * @param cost the cost
     */
    public void setCost(Double cost) {
        this.cost = cost;
    }

    /**
     * Gets cid.
     *
     * @return the cid
     */
    public String getcId() {
        return cId;
    }

    /**
     * Sets cid.
     *
     * @param cId the cid
     */
    public void setcId(String cId) {
        this.cId = cId;
    }

    /**
     * Gets status.
     *
     * @return the status
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * Sets status.
     *
     * @param status the status
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * Gets order num.
     *
     * @return the order num
     */
    public String getOrderNum() {
        return orderNum;
    }

    /**
     * Sets order num.
     *
     * @param orderNum the order num
     */
    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    /**
     * Instantiates a new Outorder.
     */
    public Outorder() {
    }

    /**
     * Instantiates a new Outorder.
     *
     * @param id         the id
     * @param sId        the s id
     * @param createTime the create time
     * @param cost       the cost
     * @param cId        the cid
     * @param status     the status
     * @param orderNum   the order num
     */
    public Outorder(String id, String sId, Date createTime, Double cost, String cId, Integer status, String orderNum) {
        this.id = id;
        this.sId = sId;
        this.createTime = createTime;
        this.cost = cost;
        this.cId = cId;
        this.status = status;
        this.orderNum = orderNum;
    }
}

